package com.five.zhh.fiveinfive.room.message.result;

import com.five.zhh.fiveinfive.room.message.OperateTittle;
import com.five.zhh.fiveinfive.room.message.UserOperateResult;
import com.five.zhh.fiveinfive.room.user.UserInfoInRoom;

/**
 * 用户操作异常的响应，但不是直接抛出一个Exception，因为这样会触发WebSocket的异常自动关闭机制
 */
public class OperateExceptionResult extends UserOperateResult {

    public OperateExceptionResult(OperateTittle tittle, String roomCode, UserInfoInRoom receiver, String message) {
        super(tittle, roomCode, message);
        this.receiver = receiver;
    }
}
